package com.hnhs.dao;



import com.hnhs.model.Category;
import com.hnhs.model.CategoryQuery;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CategoryDao {

    public List<Category> findAll();
    @Select("select * from 202_category where id=#{id}")
    public List<Category> findById(Integer id);

    //多条件查询
    public List<Category> select(CategoryQuery query);

    public Integer insert(Category category);
    public Integer update(Category category);
    public Integer updateStatus(@Param("id") Integer id, @Param("status") Integer status);
}
